//
//  UIView+Init.m
//  SummaryUsefulCode
//
//  Created by 王克博 on 2019/1/9.
//  Copyright © 2019 XiuXiu. All rights reserved.
//

#import "UIView+Init.h"

@implementation UIView (Init)


+ (UIView *)makeViewBgColor:(UIColor *)bgColor cornerRadius:(CGFloat)cornerRadius
{
    UIView * view = [[UIView alloc] init];
    if (bgColor) {
        view.backgroundColor = bgColor;
    }
    if (cornerRadius > 0) {
        view.layer.cornerRadius = cornerRadius;
    }
    
    return view;
}



@end
